package com.day10.objectarray;

public class Master {

    public void sendTeacher(Teacher teacher){
        if(teacher instanceof EnglishTeacher){
            EnglishTeacher et = (EnglishTeacher)teacher;
            et.shangKe();
            et.tingLiKe();
        }else{
            teacher.shangKe();
        }
    }

}
